﻿using Practice.PH4_2104A.Shopping.SevenLayerFramework.Domin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Practice.DTO
{
    public class OrderInputDTO
    {
        public OrderMasterInputDTO Master { get; set; }
        public List<OrderDetailInputDTO> Details { get; set; }
    }

    /// <summary>
    /// 创建订单的订单主表信息（前台需要传入的）
    /// </summary>
    public class OrderMasterInputDTO
    {
        public Guid MemberId { get; set; }
        public string RecivedName { get; set; }
        public string RecivedPhone { get; set; }
        public string RecivedAddress { get; set; }
        public decimal OrderAmount { get; set; }
        public decimal RateAmount { get; set; }
        public string Remark { get; set; }
    }

    public class OrderDetailInputDTO
    {
        public Guid SkuId { get; set; } //你购买的商品的Id 
        public string? Name { get; set; }
        public decimal Price { get; set; } //
        public int Number { get; set; } //购买数量
        public string? Image { get; set; }
        public string? State { get; set; }
    }
}
